<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
    <%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
    <%@ taglib uri="http://java.fckeditor.net" prefix="FCK"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="../sample.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="../fckeditor.gif" type="image/x-icon" />


<script type="text/javascript">
	function FCKeditor_OnComplete(editorInstance) {
		var oCombo = document.getElementById('cmbSkins');

		// Get the active skin.
		var sSkin = editorInstance.Config['SkinPath'];
		sSkin = sSkin.match(/[^\/]+(?=\/$)/g);

		oCombo.value = sSkin;
		oCombo.style.visibility = '';
	}

	function ChangeSkin(skinName) {
		window.location.href = window.location.pathname + "?skin=" + skinName;
	}
</script>
<title>保安巡更系统</title>
</head>
<body>
 <tiles:insertTemplate template="/WEB-INF/layout_admin/layout.jsp" flush="true"> 
	<tiles:putAttribute name="body" >
		<div class="main-content">
			<s:form method="POST" action="savebao">
				<h2>系统概述</h2>
				<FCK:editor instanceName="bao.systemgaishu" width="400" height="200" value="${bao.systemgaishu}">
					<jsp:body>
			               <FCK:config SkinPath="${skin}" />
			            </jsp:body>
				</FCK:editor>
			
				
				<h2>系统组成</h2>
				<FCK:editor instanceName="bao.systemtzucheng" width="400" height="200" value="${bao.systemtzucheng}">
					<jsp:body>
			               <FCK:config SkinPath="${skin}" />
			            </jsp:body>
				</FCK:editor>
			
				
				<h2>系统配置</h2>
				<FCK:editor instanceName="bao.systempeizhi" width="400" height="200" value="${bao.systempeizhi}">
					<jsp:body>
			               <FCK:config SkinPath="${skin}" />
			            </jsp:body>
				</FCK:editor>
			
				
				<h2>巡更管理软件</h2>
				<FCK:editor instanceName="bao.checkmamgesoft" width="400" height="200" value="${bao.checkmamgesoft}">
					<jsp:body>
			               <FCK:config SkinPath="${skin}" />
			            </jsp:body>
				</FCK:editor>
				
				<s:hidden name="bao.id" />
				<s:submit value="修改" />
			</s:form>
			
        </div>
		
	</tiles:putAttribute>
</tiles:insertTemplate> 


</body>
</html>